package com.example.presentshopping.ui.activity

import BaseRecyclerAdapter
import BaseRecyclerHolder
import android.annotation.SuppressLint
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.Html
import android.widget.TextView
import androidx.fragment.app.Fragment
import com.example.presentshopping.R
import com.example.presentshopping.config.base.BaseMvpActivity
import com.example.presentshopping.config.bean.MyearningsBean
import com.example.presentshopping.config.bean.RefundetailBean
import com.example.presentshopping.mvp.presenter.PublicPresenter
import com.example.presentshopping.net.http.HttpRequest
import com.example.presentshopping.net.http.HttpURL
import com.example.presentshopping.ui.fragment.earnings.RefundetailFragment
import com.example.presentshopping.ui.fragment.earnings.TodatearninFragment
import com.example.presentshopping.utils.ToastUtil
import com.example.presentshopping.utils.tool.GsonUtils
import kotlinx.android.synthetic.main.activity_refundetail.*


//  退款明细
class RefundetailActivity :BaseMvpActivity() {

    private val strTitle = arrayOf("昨日退款","今日退款")


    override val layoutId: Int
        get() = R.layout.activity_refundetail

    override fun initView(savedInstanceState: Bundle?) {
        title_main_tv.leftBackImageTv.setOnClickListener { finish() }
        val pageViews = ArrayList<Fragment>()
        pageViews.add(RefundetailFragment(this,"1"))
        pageViews.add(RefundetailFragment(this,"2"))
        tablayout.setViewPager(SpecialViewPager,strTitle,this,pageViews)

    }





    override fun onDestroy() {

        super.onDestroy()
    }

    override fun showToast(msg: String?) {
        ToastUtil.showMsg(msg)
    }

    override fun onSuccess(data: String?) {

    }

    override fun onFailure(e: Throwable?, code: Int, msg: String?, isNetWorkError: Boolean) {

    }
}